package greenteam.mylook;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class User
{
	private static String email;
	private static String name;
	private static String surname;
	private static Calendar date_birth = GregorianCalendar.getInstance();
	private static String gender;
	private static String city;
	
	public static String getEmail() {
		return email;
	}
	
	public static void setEmail(String email) {
		User.email = email;
	}
	
	public static String getName() {
		return name;
	}
	
	public static void setName(String name) {
		User.name = name;
	}
	
	public static String getSurname() {
		return surname;
	}
	
	public static void setSurname(String surname) {
		User.surname = surname;
	}
	
	public static Calendar getDate_birth() {
		return date_birth;
	}
	
	public static void setDate_birth(String date_birth)
    {
		String[] list_value = date_birth.split("-");
		User.date_birth.set(Integer.parseInt(list_value[0]), Integer.parseInt(list_value[1]), Integer.parseInt(list_value[2]));
		String prova=String.valueOf(User.getDate_birth().DAY_OF_MONTH);
		android.util.Log.d("---------------DSADSAA----------", prova);
		//User.date_birth.set(2010, 8, 30);
	}
	
	public static String getGender()
    {
		if(gender.equals("M"))
			return "Maschio";
		else
			return "Femmina";
	}
	
	public static void setGender(String gender) {
		User.gender = gender;
	}
	
	public static String getCity() {
		return city;
	}
	
	public static void setCity(String city) {
		User.city = city;
	}
}
